package hku.cs.lunuo.cost;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;

public class Change {
	public static void main(String[] args) throws IOException {
		File f = new File(args[0]);

		BufferedReader br = new BufferedReader(new FileReader(f));

		String s = br.readLine();
		while (s != null) {
			if (s.startsWith("total_line")) {
				String x = s.split(" ")[2];
				String y = x.split(":")[1];
				System.out.print(y+" ");
			}
			s = br.readLine();
		}
		System.out.println();

	}
}
